made some leaf variables private