Got rid of warning, changed pruning to prune values lower or equal to threshold