enforcing 2d arrays