do the greps in scalar context and improve the example a bit