new sphere code