get the right part of the data
tabling this functionality