Use flex

Use flex