template transformations sort of working