replace delegate with EventHandler