finished error correcting