sorted out nodes