added event wait