re-sort codes
rm non-pulsed codes