implement prettify features