to fix an array bound