piecewise linear things