log statement fix