added ability to bypass using zero weight