get rid of pointless indexes