removed some unused variable warnings