fixing cond substep