change SORT_MOVE to SORT_COPY