added extra sale_ok logic