fixed complete_product? function