removes redundant check