added update_all_clients function