update the realm