added the situation where it is duplicate people