removed global defining of datatype