added ability to set variable names