added makeTitle function