Replaced nid everywhere with arId & id for dictionary