fix error in yosida_perp
fix sdiff functions