updated some variable names to make the code a bit more self-documenting