add helper method to generate title