planning + correction