insert debugging message for checking out_of_bound issue.