im and idiot.  should leave orginal in git to have record
change switch to ifelse so it ocmpiles on gordon