changed logging to Logger