learned templates