fixed typing errors etc