fixing log statement