maybe switch the cond to a case?