get data from the model