historicalBar refactoring