add what was in the "while" loop