use file.path or file