added set command for state variables