remove static fields and classes