remove redundancy in check