get phi and theta