use izip instead of zip