change the directory of input data