change swap output for |erb|