changed some floats to ints