updated callback method to event