use rec2array