[RCD] Logic of identity selection