remove redundant macro
remove redundant check