how to define parameters for external method calls