events set before callback