added end element to parser