added resetValues function