patch for associative arrays