fixed template.xyz