swap phi and theta