prepared for gzip and removed debug print statement