save_source function

Save source