inrceased k, changed ints to floats