fix to compile

wouldn't compile, so I fixed a couple things.  now it does.