removed REALLY SLOW smoothed min of h