finishing the update process for newly sorted data, forgot some thigns