backup
compress and decompress for integers