fixed one bug in I/O still somsething wrong