changed block finally in Reader class