swapping on init