move files to the correct directory