log statement output corrected