edits
add swaps; apply swaps