update warehouses array_map