add case for single input file