print before testing swap