removed template code