add type check and bail out when title could not be created