converted major data structures to typesafe class slot, from siz.