updated to set stockId using stock_seq