added error to StockController