removing compress function