Change index to id for all member variables