Merge pull request #10 from seonmyeong-kim/discrete

swap bug fix