added unique event name generator function