crafting some primitives in the compressor