how to store new values in variables?