making sure these numbers add up
refactor gzip branch into function