fix controllers calculations