renamed variables to be more telling what they actually do