added the title helper method