partial (broken) solution to changing regular bars to repeat bars