make event into member variable