writing a script to spread the files
finished script