get data for calculating weights