updated to include prettify in template