making indexng work