fixing array declaration