removed no_compression method and added with_compression method