some simplifications (local variables) in a template