added method to detect unused persons
added method to detect unused persons