now with unknown parameters also works