clients function fix