problem with index so reverted