updated variable names to better reflect what they are