optimized the examples