edited variable name to increase clarity