fixing polar coords.  still buggy