add helper function for title