simplify set_intermediate