added compressor code