commit s04 end of swap method