fix typo
rename variables for clarity