get the data from the right place