removing flex from main