finish update stock structure