after modifying clear_folder