add title with depth and set t,d as arguement