better num bounds checking