decision tree and histogram working