Var bugs

two dead variables plus a scoping issue
oh, you're right of course.  how cute.  let's get rid of it.