modify to clean-up sph examples