preparing for closure