replace uses of array(