beforecheck