adding index for brim