create zipping functionality