added use of logger