template adjustment