rewrite v1.2