add index in client object