renamed one variable for clarity