oops. overwrote $file