add template correctly this time