changed it to select random record