replace internal tickId with the new guid function