change flex, add test