remove an unsed variable and a typo