rewrite NewEntity