changed data type from hash-table to array