use call to set up the context of event callback function