finsihed preparing the data