refine the code of structure

refine the code of structure