templat adjustment