added prompt linearity check macro