fine tuned loop. capped it in places, made sure appropriate ranges were passed around. needs cleaning