finish the implementation of import old data