proper check for expiry