working on eventStack