added some cleanup for the model table