adding value_scale to convert a value to a scale from 0 to 1