markLocalVariables method since marking vars to box is such a common thing