adding local residual analysis file