methods to set variables