reverted back to using hashtable.