creating compressor