added default value for the second argument of invoke method, for it's optional