normalizing EOF