fixed improperly named variable to solve error