fixed a couple of unused-var warnings