added check macro