added checking for ID of items in stock