compress and bug fix 3