added framework for zigzag case 3