remove static qualifier from ofstream