pulled out a bit of dead code in template