add cartesian to spherical conversion