pass element to get sub