code to identify curveblock