compiles and run on OS X