working on sphere intersection