fixed a couple of unused variable warnings