bug fix with incorrectly named variable name