add gal residual