save array instead of hash

to save space