replace floats with ints where possible
minor bug fix