added the rectified linear code