of type object, but the function expects a array.