fixed some unused variable warnings