function templete file add and source modify