changing some logging code