date_expiration and expired flag added in code