needed to cast double on the int division in mobility