adds condition in header