add cut condition in main.ino