changed floats to ints