add capacity constraints