finish function of data_structure_1