row and col were modified to Fortran format (+1 was added)