modify dynamic method invocation