snw but fixed mistake in phi-theta to sph coord conv