updating entities