better way of restricting expiry