added code for populating results