tidy up the talk creation code