updateCurrentValues function

Updates current values