binning working in tree_reader class