remove variables from sub classes