update entities