remove redundant code paths