improvement of logging