of type object, but the function expects a string