Added range checking to #yale_nd_row