added a title function