Refactor functions about zip.