corrections of maxres2 in c array