add index 0f the warning box