updated index to include inline elements