helper title function