check boundary

check boundary