swap elems, find writer