corrected file_paths method