resolving event conflict