Filling balance optimization by best gate location