spliting by inputfile working