code to identify curve blocks