prepare for event