multithreading
fixed problem with array by converting to hash
fixed hash problem