bug fixing with getDataType