fixed typing errors