adding anchors for listElements and returning object from core func