working on getAllVariables