fixing incorrect variable name