added equality operator replacement