some changes in compress.java