verify code for open pattern