move EventSet from class to function