update leaf options