rewrite of zidos