compressData is now working