added variables to store values

added variables to store values