allow returning only the element, not appending it