swap identification