refctor t_data_type to int