templates and sequences