made sure datatype was written as DataType