kill loose bracket in template, fix code indentations