corrected reading logging again