fixed using hash sum with compressing