implement and debug getter and setter methods for flattenedData