added function structure to editor