associative arrayを大幅に書き換え