finding weights