working regression tree