modified some things in io.f