replace value method parameters with references