Fixed distribute center logic and added full constraint and fixed private api issues