methods in compressor class