updated variable names to make more sense