remove needless check