fixed bug in Cpm, now for Sphere-Wall interaction