error in inside sphere detection