remove needless condition