method passing and invocation