added leafbool