Some code clean, chage vector to list in stat module