remove unnecessary instance fields.