updated incorrectly named variable reference