edited model to remove repeat