optimizations on ec phases and takeoff