change distributor logic