updated StructType to actually work