array instead of hashtable