renaming moveToEnd to reset