beginning switch to boolean array sign curvature