modified equal method in Service model