1,change dataCount to integer
2,add default case
3,clean up