added equality for model