remove unnecessary or operation