added code that set in-between flag ibncluded in private context.