add function to swap socks