trying to commit changes to residual.m