cleaning up category model to remove duplicates