remove extra }
convert anonymous function to anonymous inline function :)
Merge pull request #172 from haraldpdl/optimizations

Optimizations