correcting the usages of logging