added missing private declaration and removed unused variable