fixed checkwarnings