stage optimization