return code in check macro