Assign third-level ids
Use ids for third level