table.copy = function(h) local result = {} for k,v in pairs(h) do result[k] = v end return result end