use brickid, not index