updates entities