remove redundant check
remove count from addall
remove redundant check