add sam index rule