refactor array_extensions. nice.