quantity check