set titles and id