add compression feature