substitute array with overload array as map