fixed index bug

codes[] was returning region indexes that needed 1 subtracted.  not
necessary so reduced all indexes by 1 in first column