Handling while statements with empty bodies
removed deprecated code