read from file - corrected1