add id for scene graph objects