implement LDZ and STZ