conditional assignment seems to be done