added check for datamode to type mapping