minor: simplification of swap! call