properly render a method call