created function 'createSubentries'