prepare for transitions