plan and real mode