add compressor sample
add compression function