only commit in while loop when committed = False