change array to list for hash key