adapted to new stroke histogram select method