add code verification method