changed values to doubles