changed variable names to make more sense