XA template working