references to parameters replaced with methods calls