refactor bar radius to variable