undid forever loop mistake