initialized inputs and output arrays