fixing rectify errors