renamed variables for consistency - unit test passed