moved prettify to head