SPH functions are working. not sure though