removed the while loop in the while loop. that wasn't pretty. looks a lot better, now.