forgot to add array index to subdivision code.