stack updated in conditions