updated popSample