changed some definitions to funs for easier simplification
more wd_outcome