removed unused list of elements with optional end tags