pass only the file instead of a tuple