data type change for tri