do not use variable length array in mac os x