read from file - corrected2