added check for product value