replace Fortran to G77