showing error on index