hide effective options and remove redundant code