simpler swapcaps, still bad way to do it