changes some variable names to improve readability