resetValues function adjusted