added event insertion