added the title function