modif flags in models