changed magic number 255 to COMPRESSION_RANGE