bound the values to match domain