deal with empty datatype