infinite loop commented out in controller