add the compression feature to improve preformance