clean up sphere script a bit