revised datatype script