trying to make templates work