modify access for Type filed and IsExpanding filed