adding leaves classes