core and flex model