correcting templates