classify and rectify