small update to swap