working on event scope