modified stock_check_rb