imlemented zip for inputs.