switching to polar coordinates