removed unused parameter in templates.prepare
resolved some todo that's been in there for many months