added check for ordered products