models rewritten