take out conditional assignment