working check_receipt