fix variable name (new_client -> client)