update

Added avg of values and tightened constrain