removing initial 1-d convexity pattern code by Sabyasachi