stop the world if we reached end