added eq2ang function