messing around with conversion between spherical and euclidean coordinates