updated how title is generated