added spherical geometry functions