need index for dynamic bars