update zip function.