updated segment stats: different scoring, some code cleanup