changed ints to doubles