helps to set the variable