remove redundant read_array