input data from files