generate code: call method