refactoring TypeSizes