added flex option