redundant code reduction