adding template for x