remove second instance of logging