reorgenize the structure