change from readarray to cat