remove while true from example