changes done for reading multiple files as input