clean up the example c_potential a bit