changed allocation of strings to prevent gfortran bug