finish main function without delete original files