retired some older MATLAB code