added initStruct to StructTaype