now can take more than one input file