change in case of we have 2 nodes