added exchange functions + sse of compression function