changed variables to better reflect their purpose