added code for gzip file