modify to clean up sph example