added missing neg quantity check