set random id
comment on a variable
if user is not logged in, create a different kind of Event
rename for better clarity