changed from m floats to ints