conditional assign on root