file() method instead of file variable