do some random optimization