rearranged unlink