add check for predecessor and successor peers.