changed flex-model for flex-models