A method for controlling the liquid injection of a compressor device or expander device, whereby this compressor device or expander device comprises at least one compressor element or expander element, whereby the element comprises a housing that comprises a rotor chamber in which two rotors are rotatably affixed, said rotors rotating with their lobes mated together, whereby lubricating liquid is injected into the element, wherein the method comprises the step of providing at least two liquid supplies to the rotor chamber of the housing, whereby one liquid supply is injected into the first compression chamber or expansion chamber and the other is injected into a second or subsequent compression chamber or expansion chamber, whereby the first compression chamber or expansion chamber is the gas chamber that is closed off just after a gas inlet of the rotor chamber and said second or subsequent compression chamber or expansion chamber being formed after the at least one rotor have rotated one pitch or revolution from the gas inlet.