added condition transformations, flag