modify to update sph example