added missing functions to set variables