working on the events