added outer wrapper to template 2