correct check for expiry