removed index bug