added toggle to flinger_calc