generate dynamic titles