add while loop to zz