detecting check