delete SerializalbeIterator class and refine the code