first implementation of getSections()