fix format statements to conform with fortran standard