fixed: didn't use file argument in main(file)