removed a do while loop i dident need.