Optimal contract under brand name collaboration