implement getElements use