task: leftover while loop removed