trying to fix template adding