cacheMem added to add elemenst in existing empty index