ignore begin if end is specified and before begin