adding code to build title