added while loop, sad but these seemed to be empty sometimes