added func_alt2, which does not use alt_set to entangle results