Corrected populateData function call