model and sorting updates