#24 check boundary