initial reading of data