use enums in sub structures.