allow the element to be returned instead of appended