fixed something error, now running into an infinite loop...