prettify Ref T