add checkbounds