reset block value to false before every check