now waits for the data to be loaded