have changed floting point cal that caused microcontroler to crash to int math