remove redundant check