fixed bug that caused the demo code during the presentation not to be optimized :(