draft code for isCheck