model2 rewrite