added spheres and some other functions