made templates work