changed floats to ints for integer valued variables