some small code clean