craeting new group for each tree. some correction to calculate height