update Entity and Unit