optimizes transition