improved Mango to avoid secondary nodes