modify some templates