r can just cause issues because of polar coordinates, so may want to use r1 or another variable entirely.