optimize the example.s