modifiekd while with else