fixing array call