please change it to return a vector of element IDs instead of pointers. we need to access elemental values via element id.