add id to index for auto resize