first revision of the compression algorithm