adding template for graphs