adding template stuffs