prepare transition