refactoring logs