some changes for leaf_color object and depending objects