rebuild entity