using indices dict