get the vars for all statements... also ground means free of vars