added titles and horizontal rule