unified legacy data type in code