scanning and file