before check