swap logic comments