swaps library lines