refactoring inside log