fixing log output