compiles with some optimization