remove pie doubles