changed prettify to version by phillip haydon