starting adding template code