added title function