changed variable names for readability