Fixed spelling errors and changed variable name