try to solve os x stack alignment
code cleaned up
xcode