organise nodes