implemented flattening of inherited conditions which are not visible to child