added wrapper functions to initialize and set variables