don't need increment for while loop