reading in file correctly now