renaming some parameters for clarity