backport title function.