first part of KDE done, restrucute of area and node