read input data