added the compressor

TODO: put the values in constants