attempts to correct an array declaration bug