moving files to appropriate folder