remove unending loop