debugging the sphere problem