use old flex style so it will run on ios 6