attend to event method