getting the right data