simplify replace z by s